package	model.code;

import model.symbol.Keyword;

/**
 * This is just a single call to a macro, outside of everything but a Segment, Section, or CodeFile.
 *
 * @author Neil Dickson
 */
public class PreprocessorLine extends CodeFileChunk {
	private	Keyword		keyword;
	private	String[]	parameters;

	public PreprocessorLine(Keyword keyword, String[] parameters) {
		super(null, null);
		this.keyword = keyword;
		this.parameters = parameters;
	}

	public PreprocessorLine copy() {
		String[] newParameters = new String[parameters.length];
		System.arraycopy(parameters,0,newParameters,0,parameters.length);
		return new PreprocessorLine(keyword,newParameters);
	}
}
